#!/bin/bash
while true; do
    read -p "请输入 1 进入环境，2 退出退出环境： " enter_execute
    case $enter_execute in
        1 )
            flutter pub global activate fvm
            fvm global 3.29.2
            flutter config --jdk-dir "/Users/jimo/Library/Java/JavaVirtualMachines/jbr-17.0.14/Contents/Home"
            break
            ;;
        2 )
            flutter pub global activate fvm
            fvm global 3.32.8
            flutter config --jdk-dir ""
            break
            ;;
        * )
            echo "输入无效，请重新输入。"
            ;;
    esac
done

